package com.asiainfo.dacp.datastash.orm.po.core;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.asiainfo.dacp.jpa.annotation.ColumnPosition;

import lombok.Data;

@Data
@Entity
@Table(name="dacp_datastash_broker")
public class DataStashBrokerPo {
	
	@Id
	@Column(name="broker_id",length=20)
	private String brokerId;
	
	@Column(name="broker_ip",length=50)
	@ColumnPosition(2)
	private String brokerIp;
	
	@Column(name="stat_date")
	@ColumnPosition(3)
	private Date statDate;
	
	@Column(name="is_alive",length=2)
	@ColumnPosition(4)
	private String isAlive;
	
	@Column(name="is_leader",length=2)
	@ColumnPosition(5)
	private String isLeader;
}
